<?php
/**
{
    "questionStudentId": "INT //ID",
    "subjectId": "INT //学科@foreign::tbl_subject; ",
    "questionTypeId": "INT //问题类型@foreign::tbl_question_type; ",
    "questionDimensionId": "INT //评价维度@foreign::tbl_question_dimension; ",
    "dimension": "VARCHAR //评估维度@noList; ",
    "studentId": "INT //学生@foreign::tbl_student; @search; ",
    "score": "DECIMAL //得分",
    "created": "DATETIME //创建时间@delete; "
}
 */

class QuestionStudent extends Base
{
    
	public $questionStudentId= '';//ID
	public $subjectId= "0";//学科@foreign::tbl_subject;
	public $questionTypeId= "0";//问题类型@foreign::tbl_question_type;
	public $questionDimensionId= "0";//评价维度@foreign::tbl_question_dimension;
	public $dimension= NULL;//评估维度@noList;
	public $studentId= "0";//学生@foreign::tbl_student;@search;
	public $score= "0.00";//得分
	public $created= 'CURRENT_TIMESTAMP';//创建时间@delete;

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_question_student';
    }
    
    public  function key(){
        return 'questionStudentId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return array (  0 => 'created',);
    }
            
    public function className()
    {
        return 'QuestionStudent';
    }
    
    public  function field()
    {
        return array (  'questionStudentId' =>   array (    0 => 'INT',    1 => 11,    2 => 'ID',  ),  'subjectId' =>   array (    0 => 'INT',    1 => 11,    2 => '学科@foreign::tbl_subject;',  ),  'questionTypeId' =>   array (    0 => 'INT',    1 => 11,    2 => '问题类型@foreign::tbl_question_type;',  ),  'questionDimensionId' =>   array (    0 => 'INT',    1 => 11,    2 => '评价维度@foreign::tbl_question_dimension;',  ),  'dimension' =>   array (    0 => 'VARCHAR',    1 => 100,    2 => '评估维度@noList;',  ),  'studentId' =>   array (    0 => 'INT',    1 => 11,    2 => '学生@foreign::tbl_student;@search;',  ),  'score' =>   array (    0 => 'DECIMAL',    1 => 10,    2 => '得分',  ),  'created' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '创建时间@delete;',  ),);
    }


}